Repository navigation
[Pagination] Support Symfony UID cursor fields - #4111
Merged
Merged
Conversation
smnandre
approved these changes
Oct 19, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Kocal
force-pushed
the
pagination-uid-cursor
branch
from
October 19, 2026 14:56
5ce3993 to
bdfa461
Compare
Member
|
Thank you @norkunas. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Entities identified by a Symfony UID cannot be cursor-paginated with Doctrine ORM. The first page renders, but following the "next" link fails, because the identifier is always appended as the tie-breaker:
Binding a UID as a query parameter fails too, before any page is rendered:
With this PR:
AbstractUidType, souuid,ulidand custom subclasses) and bound with that type. The database then compares UIDs in its storage format (binary on SQLite/MySQL, nativeuuidon PostgreSQL), which is also the orderORDER BYusessymfony/doctrine-bridgeandsymfony/uidare only needed as dev dependencies: the adapter checksinstanceof, so nothing changes for applications without them.#4102 edits the same type allow-list and the same docs sentence for
datecolumns, so whichever is merged second needs a small rebase.🤖 Generated with Claude Code